package com.baorun.test.web.service.impl;

import com.baorun.entity.Book;
import com.baorun.test.web.mapper.BookMapper;
import com.baorun.test.web.service.BookService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author: wang
 * @date: 2021/9/1 10:09
 * @description:
 */
@Service
public class BookServiceImpl implements BookService {

    @Resource
    private BookMapper bookMapper;

    @Override
    public List<Book> queryBooks() {
        return bookMapper.selectBooks();
    }
}
